package com.efesco.oa.announce;

import com.bstek.dorado.common.*;
import com.bstek.dorado.data.*;
import com.bstek.dorado.data.db.DBStatement;
import com.bstek.dorado.view.*;
import com.bstek.dorado.view.data.*;
import com.bstek.dorado.view.control.*;

/**
 * announce_list_manageViewModel
 */
public class announce_list_manageViewModel extends DefaultViewModel {
  protected void doUpdateData(ParameterSet parameters)
      throws Exception {
	  DBStatement dbs =new DBStatement();
	  String sql="";
	  Dataset dataset=getDataset("dataset_announce_list");
	  RecordIterator iter = dataset.recordIterator();
		while (iter.hasNext()) {
			Record record = iter.nextRecord();
			if (record.getFieldSet().getField("select")!= null) {
				sql="update s_info_announce set is_delete='yes' where info_announce_id="+record.getValue("info_announce_id");
				dbs.setSql(sql);
				dbs.execute();
				
				
			}
		}
		dbs.close();
   // super.doUpdateData(parameters);
  }

}
